package com.hualan.sfzy.entity.course;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hualan.sfzy.entity.system.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseEvaluate {
    /**
     * 课程评价表主键
     */
    private Integer id;

    /**
     * 评价内容
     */
    private String content;

    /**
     * 评分
     */
    private Double score;

    /**
     * 评论时间
     */
@JsonFormat(pattern = "yyyy-MM-dd")
    private Date evaluateTime;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 课程id
     */
    private Integer courseId;

    /**
     * 是否删除：0正常 1删除
     */
    private Integer del;

    private Course course;

    private User user;
}
